import request from '@/utils/request';

/**
 * GET 核心指标监控
 * @pathParam apiVersion true
 * @queryParam hrOrgTypeId true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getCoreQuotaStoreUsingGET({ params, data }) {
  return request('monitoringConsole/coreQuota/store', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 生成监控台-回
 * @pathParam apiVersion true
 * @queryParam yearMonth true
 */
export function createReturnUsingPOST({ params, data }) {
  return request('monitoringConsole/createReturn', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 监控台--用户的数据权限
 * @pathParam apiVersion true
 * @queryParam userId true
 */
export function getMonitoringUserDataPermissionsUsingGET({ params, data }) {
  return request('monitoringConsole/dataPermissions', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 监控台--用户的数据权限V2
 * @pathParam apiVersion true
 * @queryParam userId true
 */
export function getMonitoringUserDataPermissionsV2UsingGET({ params, data }) {
  return request('monitoringConsole/dataPermissionsV2', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET app端根据门户待办id查看门户待办
 * @pathParam apiVersion true
 * @queryParam instanceId true
 */
export function getAppToDoUsingGET_1({ params, data }) {
  return request('monitoringConsole/getAppToDo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET pc端根据门户待办id查看门户待办
 * @pathParam apiVersion true
 * @queryParam instanceId true
 */
export function getPcToDoUsingGET_1({ params, data }) {
  return request('monitoringConsole/getPcToDo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 监控指标-产明细
 * @pathParam apiVersion true
 * @queryParam hrOrgTypeId true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getProduceItemUsingGET({ params, data }) {
  return request('monitoringConsole/produceItem', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 监控指标-回明细
 * @pathParam apiVersion true
 * @queryParam hrOrgTypeId true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getReturnItemUsingGET({ params, data }) {
  return request('monitoringConsole/returnItem', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 监控指标-销明细
 * @pathParam apiVersion true
 * @queryParam hrOrgTypeId true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getSaleItemUsingGET({ params, data }) {
  return request('monitoringConsole/saleItem', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 监控指标-结明细
 * @pathParam apiVersion true
 * @queryParam hrOrgTypeId true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getStatementItemUsingGET({ params, data }) {
  return request('monitoringConsole/statementItem', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 监控指标-存明细
 * @pathParam apiVersion true
 * @queryParam hrOrgTypeId true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getStockItemUsingGET({ params, data }) {
  return request('monitoringConsole/stockItem', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 监控指标-储明细
 * @pathParam apiVersion true
 * @queryParam hrOrgTypeId true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getStoreItemUsingGET({ params, data }) {
  return request('monitoringConsole/storeItem', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 业态存销比
 * @pathParam apiVersion true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getStoreSaleRateUsingGET({ params, data }) {
  return request('monitoringConsole/storeSaleRate', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 监控指标-供明细
 * @pathParam apiVersion true
 * @queryParam hrOrgTypeId true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getSupplyItemUsingGET({ params, data }) {
  return request('monitoringConsole/supplyItem', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST app端根据门户待办id消除待办
 * @pathParam apiVersion true
 * @queryParam instanceId true
 */
export function updateAppEliminateToDoUsingPOST({ params, data }) {
  return request('monitoringConsole/updateAppEliminateToDo', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * POST pc端根据门户待办id消除待办
 * @pathParam apiVersion true
 * @queryParam instanceId true
 */
export function updatePcEliminateToDoUsingPOST({ params, data }) {
  return request('monitoringConsole/updatePcEliminateToDo', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 货值监控
 * @pathParam apiVersion true
 * @queryParam orgId true
 * @queryParam reportDate true
 */
export function getValueMonitoringUsingGET({ params, data }) {
  return request('monitoringConsole/valueMonitoring', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 测试发送预警提醒
 * @pathParam apiVersion true
 * @queryParam reportDate true
 */
export function createWarningReminderUsingGET({ params, data }) {
  return request('monitoringConsole/warningReminder', {
    method: 'GET',
    params,
    data,
  });
}
